<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {
	function __construct() {
		parent::__construct();
		$this->load->library('unit_test');
	}
	
	function _remap($method, $params = array())
	{
		call_user_func_array(array($this, $method), $params);
		echo $this->unit->result();
	}
	
	function index(){
		return $this->run_all();
	}
	
	function run_all(){
		$this->run_auth();
		$this->run_backend_clients();
		$this->run_backend_invoices();
		$this->run_client();
		$this->run_owner();
	}
		
	function run_auth(){
		// Using a very common 3rd party library, assuming it is correct.
	}
	
	function run_client(){
		
	}
	
	function run_owner(){
		
	}
	
	function run_backend_clients(){
		
	}
	
	function run_backend_invoices(){
		
	}

}